<template>
  <div id="app">
     <keep-alive>
        <router-view v-if="$route.meta.keepAlive">
            <!-- 这里是会被缓存的视图组件，比如列表A页面 -->
        </router-view>
    </keep-alive>

    <router-view v-if="!$route.meta.keepAlive">
        <!-- 这里是不被缓存的视图组件，比如详情B页面-->
    </router-view>
  </div>
</template>

<script>

export default {
  name: 'app',
  components: {
  }
}
</script>

<style lang="less">
body{
  background-color: #f5f5f5;
}
.container {
  background-color: #f5f5f5;
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.flex {
  display: flex
}
.flex-1 {
  flex: 1;
}
.text-right{
  text-align: right;
}
.text-center{
  text-align: center;
}
.main-color{
  color: #f44;
}
.align-center{
  align-items: center;
}
.pay-date .van-field__control{
    text-align: right;
  }
// .van-image__img {
//     // transform: translateZ(0);
//   transform:translateZ(0) scale(1);
// }
// .van-image-preview__image {
//   transform: translateZ(0);
// }
.view-pic {
    img {
      width: 100%;
    }
    figure {
      margin: 0;
    }
    .pswp__button--share {
      display: none;
    }
    .pswp__button--fs {
      display: none!important;
    }
  }
</style>
